import 'package:flutter_demo3/generated/json/base/json_convert_content.dart';

class NewsEntity with JsonConvert<NewsEntity> {
	List<NewsData> data;
	bool success;
	String massage;

	@override
  String toString() {
    return 'NewsEntity{data: $data, success: $success, massage: $massage}';
  }
}

class NewsData with JsonConvert<NewsData> {
	int id;
	String title;
	int userId;
	String imgUrl;
	String content;
	int likesNum;
	int commentNum;
	int forwardingNum;
	String date;

	@override
  String toString() {
    return 'NewsData{id: $id, title: $title, userId: $userId, imgUrl: $imgUrl, content: $content, likesNum: $likesNum, commentNum: $commentNum, forwardingNum: $forwardingNum, date: $date}';
  }
}
